package com.lottery.www.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author leo
 * @since 2023-05-22 15:18:52
 */
@Getter
@Setter
@TableName("pre_order")
@ApiModel(value = "PreOrder对象", description = "")
public class PreOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orderid", type = IdType.AUTO)
    private Integer orderid;

    @TableField("now_cycle_value")
    private String nowCycleValue;

    @TableField("ten_thousand_num")
    private String tenThousandNum;

    @TableField("thousand_num")
    private String thousandNum;

    @TableField("hundred_num")
    private String hundredNum;

    @TableField("ten_num")
    private String tenNum;

    @TableField("bit_num")
    private String bitNum;

    @TableField("lottery_type")
    private String lotteryType;

    @TableField("miss_count")
    private Integer missCount;

    @TableField("pre_order_input")
    private Float preOrderInput;

    @TableField("pre_order_income")
    private Float preOrderIncome;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    public PreOrder(){

    }



    public PreOrder(String nowCycleValue,String first,String second,String three,String lotteryType,Integer missCount,Float preOrderInput,Float preOrderIncome){
        this.tenThousandNum = first;
        this.thousandNum = second;
        this.hundredNum = three;
        this.missCount = missCount;
        this.nowCycleValue = nowCycleValue;
        this.lotteryType = lotteryType;
        this.preOrderInput = preOrderInput;
        this.preOrderIncome = preOrderIncome;
    }

    public PreOrder(String nowCycleValue,String tenThousandNum,String thousandNum,String hundredNum,String tenNum,String bitNum,String lotteryType,Integer missCount,Float preOrderInput,Float preOrderIncome){
        this.nowCycleValue = nowCycleValue;
        this.tenThousandNum = tenThousandNum;
        this.thousandNum = thousandNum;
        this.hundredNum = hundredNum;
        this.tenNum = tenNum;
        this.bitNum = bitNum;
        this.lotteryType = lotteryType;
        this.missCount = missCount;
        this.preOrderInput = preOrderInput;
        this.preOrderIncome = preOrderIncome;
    }


}
